package top.laoshuzi.designpatterns.base.created.abstract_factory;

/**
 * 具体工厂A
 */
public class FactoryA implements Factory {

    @Override
    public Product1 makeProduct1() {
        Product1 product = new Product1();
        product.setName("ProductA1");
        return product;
    }

    @Override
    public Product2 makeProduct2() {
        Product2 product = new Product2();
        product.setName("ProductA2");
        return product;
    }

    @Override
    public Product3 makeProduct3() {
        Product3 product = new Product3();
        product.setName("ProductA3");
        return product;
    }
}
